package phapp.model.barapp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;


/**
 * <p> 标题: 积分送花点赞日志表, tc_vip_jfshjy_log_info 数据类 POJO
 * <p>Description: DAO层映射到数据类,页面封装数据映射到数据类
 * <p>Copyright: Copyright (c) 2014-10
 * <p>Company: 
 * @author you name
 * @version 1.0
*/

public class VipJfshjyLog extends BaseEntity {
   
   //date formats
   public static final String FORMAT_CREATE_TIME = DATE_TIME_FORMAT;
   
   //columns START
   /**序列*/
   private java.lang.Integer id;
   /**分值*/
   private java.lang.String transactions;
   /**主动者ID:可为会员ID,酒吧ID*/
   private java.lang.Integer mainId;
   /**接收者ID*/
   private java.lang.Integer recipientId;
   /**状态:1000成功,9999失败*/
   private java.lang.Integer status;
   /**类型:1积分,2送花,3点赞,4交友*/
   private java.lang.String types;
   /**说明*/
   private java.lang.String explains;
   /**创建时间*/
   private java.sql.Timestamp createTime;
   
   private java.util.ArrayList idList;
   //columns END

	public VipJfshjyLog(){
	}

	public VipJfshjyLog(
		java.lang.Integer id
	){
		this.id = id;
	}

   public void setId(java.lang.Integer value) {
      this.id = value;
   }
   
   public java.lang.Integer getId() {
      return this.id;
   }
   public void setTransactions(java.lang.String value) {
      this.transactions = value;
   }
   
   public java.lang.String getTransactions() {
      return this.transactions;
   }
   public void setMainId(java.lang.Integer value) {
      this.mainId = value;
   }
   
   public java.lang.Integer getMainId() {
      return this.mainId;
   }
   public void setRecipientId(java.lang.Integer value) {
      this.recipientId = value;
   }
   
   public java.lang.Integer getRecipientId() {
      return this.recipientId;
   }
   public void setStatus(java.lang.Integer value) {
      this.status = value;
   }
   
   public java.lang.Integer getStatus() {
      return this.status;
   }
   public void setTypes(java.lang.String value) {
      this.types = value;
   }
   
   public java.lang.String getTypes() {
      return this.types;
   }
   public void setExplains(java.lang.String value) {
      this.explains = value;
   }
   
   public java.lang.String getExplains() {
      return this.explains;
   }
   public String getCreateTimeString() {
      return date2String(getCreateTime(), FORMAT_CREATE_TIME);
   }
   
   public void setCreateTimeString(String value) {
      setCreateTime(string2Date(value, FORMAT_CREATE_TIME,java.sql.Timestamp.class));
   }
   
   public void setCreateTime(java.sql.Timestamp value) {
      this.createTime = value;
   }
   
   public java.sql.Timestamp getCreateTime() {
      return this.createTime;
   }

   public java.util.ArrayList getIdList() {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList) {
      this.idList = idList;
   }

    /**手动增加属性后,toString,hashCode,equals都要修改*/
   public String toString() {
      return new ToStringBuilder(this)
         .append("Id",getId())
         .append("Transactions",getTransactions())
         .append("MainId",getMainId())
         .append("RecipientId",getRecipientId())
         .append("Status",getStatus())
         .append("Types",getTypes())
         .append("Explains",getExplains())
         .append("CreateTime",getCreateTime())
         .toString();
   }
   
   public int hashCode() {
      return new HashCodeBuilder()
         .append(getId())
         .append(getTransactions())
         .append(getMainId())
         .append(getRecipientId())
         .append(getStatus())
         .append(getTypes())
         .append(getExplains())
         .append(getCreateTime())
         .toHashCode();
   }
   
   public boolean equals(Object obj) {
      if(obj instanceof VipJfshjyLog == false) return false;
      if(this == obj) return true;
      VipJfshjyLog other = (VipJfshjyLog)obj;
      return new EqualsBuilder()
         .append(getId(),other.getId())
         .append(getTransactions(),other.getTransactions())
         .append(getMainId(),other.getMainId())
         .append(getRecipientId(),other.getRecipientId())
         .append(getStatus(),other.getStatus())
         .append(getTypes(),other.getTypes())
         .append(getExplains(),other.getExplains())
         .append(getCreateTime(),other.getCreateTime())
         .isEquals();
   }
}

